package guowei.guliproduct.product.feign;

import guowei.common.to.es.EsModel;
import guowei.common.utils.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.List;

@FeignClient("guliEs")
public interface EsProductSave {

    @PostMapping("/es/product/save")
    public R saveProducts(@RequestBody List<EsModel> esModels);
}
